local jingshu = fk.CreateSkill {
  name = "cf_jingshu",
  tags = { Skill.Compulsory }
}

Fk:loadTranslationTable {
  ["cf_jingshu"] = "精书",
  [":cf_jingshu"] = "锁定技，当“书”被使用时，你摸一张牌。若该牌的使用者不为你，其也摸两张牌。",
  ["$cf_jingshu1"] = "哼哼。",
  ["$cf_jingshu2"] = "可别上瘾哦！",
}

jingshu:addEffect(fk.CardUsing, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(jingshu.name) and data.card:getMark("cf_bocai") ~= 0
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    player:drawCards(1, jingshu.name)
    if data.from ~= player then
      data.from:drawCards(2, jingshu.name)
    end
  end
})

return jingshu
